#include <iostream>
#include <fstream>
#include <stdlib.h>
using namespace std;
int main()
{
    ifstream arch("palabras.txt");
    string linea;
    string linea1,palabraa,repetiir;
    int pos1;
    int i,flag;
    flag=0;
    while(getline(arch,linea))
    {
        pos1=linea.find_first_of('=');
        linea1=linea.substr(0,pos1);
        if(linea1=="palabra")
        {
            palabraa=linea.substr(pos1+1,linea.length()-pos1-1);
        }else if(linea1=="repetir")
        {

            repetiir=linea.substr(pos1+1,linea.length()-pos1-1);
        }else
        {
            cout<<"ERROR";
            break;
        }

    }


    int repatoi;
    repatoi=atoi(repetiir.c_str());
    i=0;
    while(i<repatoi)
    {
        cout<<palabraa<<endl;
        i++;
    }


}
